﻿namespace SvGame.Logic;

public static partial class GameLogic
{
    public static InfoStatus InfoStatus(this Status status)
    {
        var info = new InfoStatus();
        info.Kee = status.Kee;
        info.Sen = status.Sen;
        info.Force = status.Force;
        info.Mana = status.Mana;
        info.Food = status.Food;
        info.Water = status.Water;
        return info;
    }
    public static RoleInfoStatus InfoStatus(this IRole me)
    {
        var info = new RoleInfoStatus();
        info.StatusCur = me.StatusCur.InfoStatus();
        info.StatusEff = me.StatusEff.InfoStatus();
        info.StatusMax = me.StatusMax.InfoStatus();
        return info;
    }
}
